//
//  YSJinRiTuiJianButton.m
//  HubayMe1
//
//  Created by apple on 16/12/17.
//  Copyright © 2016年 Global Barter. All rights reserved.
//

#import "YSJinRiTuiJianButton.h"

@implementation YSJinRiTuiJianButton

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat imageX = self.frame.size.width / 2 - 50;
    CGFloat imageW = 100 ;
    CGFloat imageH = 100;
    CGFloat imageY = 0 ;
    
    
    self.imageView.frame =  CGRectMake(imageX, imageY, imageW, imageH);
    self.titleLabel.frame = CGRectMake(0, 110, self.frame.size.width, 15);
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    
    
    UILabel *priceL = [[UILabel alloc]init];
    priceL.text = @"¥100.00";
    priceL.frame = CGRectMake(0, 130, self.frame.size.width, 15);
    priceL.textColor = [UIColor redColor];
    priceL.textAlignment = NSTextAlignmentCenter;
    [self addSubview:priceL];
}

@end
